﻿<html>
<head>
  <script>
    var GB = parent.GB_CURRENT;
    document.write('<script type="text/javascript" src="AJS.js"><\/script>');
    if(GB.use_fx) {
        document.write('<script type="text/javascript" src="AJS_fx.js"><\/script>');
    }
  </script>
  <style>
    body {
      padding: 0;
      margin: 0;
      top:0;
      overflow: hidden;
    }

    #GB_frame {
      visibility: hidden;
      width: 100%;
      height: 100%;
    }

    #loading {
      padding-top: 50px;
      position: absolute;
      width: 100%;
      top: 0;
      text-align: center;
      vertical-align: middle;
    }
  </style>
</head>
<body>
<div id="loading">
  <img src="indicator.gif">
</div>
<script type="text/javascript">
var loading = AJS.$('loading');
var gb_type = GB.type;
var gb_url = GB.url;
var ext ="../flotante.aspx" + gb_url;
  document.write('<center><iframe id="GB_frame" src="'+ gb_url+'" frameborder="0" style="width:500px;height:320px;"></iframe></center>');

var frame = AJS.$('GB_frame');
</script> 
 </body>
<script>
function setupOuterGB() {
    frame.style.visibility = 'visible';
    GB.setFrameSize();
    GB.setWindowPosition();    
}
function loaded() {
    AJS.removeElement(loading);
    GB.overlay.innerHTML += "&nbsp;"; 
        GB.width = frame.offsetWidth;
        GB.height = frame.offsetHeight;
        setupOuterGB();
}
if(GB.show_loading) {
    AJS.AEV(window, 'load', function(e) {
        loaded();
    });
}
else {
    loaded();
}
 </script> 
</html>
